<?php
    //Start session
	session_start();	
	//Unset the variables stored in session
	unset($_SESSION['SESS_MEMBER_ID']);
	unset($_SESSION['SESS_FIRST_NAME']);
	unset($_SESSION['SESS_LAST_NAME']);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>


<style>
body{text-align:center;background:url(http://p0.so.qhimg.com/t010958dbf45b81418f.jpg) repeat-x top center ;font-size:12px;font-family:"宋体";}
#wrapper{width:600px;height:300px;top:180px;margin-left:auto;margin-right:auto;background:url(http://p2.so.qhimg.com/t01f011ebb323a60812.jpg) no-repeat;position:relative;border: 10px outset gray;}
#denluxiton{position:absolute;top:100px;left:90px;font-size:50px;font-family:"华文行楷";}
#nei1{position:absolute;top:80px;left:200px;}
#nei1 li{height:35px;line-height:35px;text-align:left;}
#nei1 li label.bel{float:left;width:50px;padding:0 5px;line-height:35px;text-align:right;}
#nei1 li input.bel{width:140px;border:yellow 1px solid;font-size:15px;font-family:"宋体";height:20px;line-height:20px;padding:2px;}
#nei1 li span{display:block;padding-left:60px;}
#nei1 span{padding-left:3px;padding-top:6px;}
</style>
</head>

<body>
<form name="loginform" action="login_exec.php" method="post">
<table width="334" border="0" align="center" cellpadding="2" cellspacing="5" >
  <tr>
    <td colspan="2">
		<!--the code bellow is used to display the message of the input validation-->
		 <?php
			if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
			echo '<ul class="err">';
			foreach($_SESSION['ERRMSG_ARR'] as $msg) {
				echo '<li>',$msg,'</li>'; 
				}
			echo '</ul>';
			unset($_SESSION['ERRMSG_ARR']);
			}
		?>
	</td>
  </tr>
</table>
<h1 align="center">欢迎来到创新基地登录界面&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="regster.php">注册</a></h1>
<div id="wrapper">
      <div id="denluxiton">登录</br>系统</div>
      <ul id="nei1">
        <li>
          <label class="bel" >用户名:</label>
          <input name="username"  type="text"  class="bel" value="" maxlength="18" placeholder="请输入合法的用户名" />
      
        </li>
        <li>
          <label class="bel" >密码:</label>
          <input name="password"  type="password"  class="bel" value="" maxlength="18" placeholder="请输入密码" />
       
        </li>
        
        <li><span>
       
         <input name="submit"  type="submit" value="登录" style="background:url(http://p2.so.qhimg.com/t01f011ebb323a60812.jpg) no-repeat;border: 2px outset gray;" />&nbsp;&nbsp;
         <input type="reset" value="重置" style="background:url(http://p2.so.qhimg.com/t01f011ebb323a60812.jpg) no-repeat;border: 2px outset gray;" />
          </span></li>
      </ul>
       </div>
    </form>
</body>
</html>